POV-Ray : Newsgroups : povray.general : How about $ for declare? : Re: How about $ for declare? Server Time
2 Aug 2024 18:07:34 EDT (-0400)
  Re: How about $ for declare?  
From: Alain
Date: 13 Aug 2004 19:07:44
Message: <411d49c0$1@news.povray.org>
Rafal 'Raf256' Maj nous apporta ses lumieres ainsi en ce 13/08/2004 
18:17... :

>chr### [at] gmxde news:cfjc1l$vh2$1@chho.imagico.de
>
>  
>
>>other keyword with the shortest unique abbreviation - but no one could 
>>read the code any more then.
>>    
>>
>
>Btw, how about adding some shorten forms for long and often used keywords, 
>it could spedd up typing and comforable level of hand-typing .pov code, 
>like
>
>light { y*10 rgb 1 }
>diff {
>  box { -5, +5 }
>  sphere { 0 10 }
>  text { 
>  pig { bozo cmap{0:<1,0,0> .5:<1,1,0> 1:1} } 
>  norm{ bozo .5 }  
>  fin { refl .5 phong 0.5,70 spec 0.1,0.06 }
>}
>
>?
>
>Aliasing keyword is probably easy, another format of for example color_map 
>perhaps not so much.
>
>Just an idea.
>
>  
>
You can create a shorthand.inc include that define those abreviations as 
equivalant to whatever keyword you want. You even can translate every 
keyword to another language if you feel like it. If you then publish 
your scene, don't forget to also publish the include file(s).

Alain


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.